﻿using System.Configuration;
using System.Web.Configuration;

namespace APILocawebGatewayUI.Nucleo
{
    public partial class APILocawebConfiguration : ConfigurationSection
    {
        private static APILocawebConfiguration instancia = null;
        public static APILocawebConfiguration Instancia
        {
            get
            {
                if (instancia == null)
                {
                    instancia = (APILocawebConfiguration)WebConfigurationManager
                         .GetSection("APILocawebGateway");
                }
                return instancia;
            }
        }

        [ConfigurationProperty("Url", DefaultValue = "https://comercio.locaweb.com.br/comercio.comp", IsRequired = true)]
        public string Url
        {
            get { return (string)base["Url"]; }
            set { base["Url"] = value; }
        }

        [ConfigurationProperty("Identificacao", IsRequired = true)]
        public string Identificacao
        {
            get { return (string)base["Identificacao"]; }
            set { base["Identificacao"] = value; }
        }

        [ConfigurationProperty("Debug", DefaultValue = "false", IsRequired = false)]
        public bool Debug
        {
            get { return (bool)base["Debug"]; }
            set { base["Debug"] = value; }
        }
        [ConfigurationProperty("Email", IsRequired = false)]
        public string Email
        {
            get { return (string)base["Email"]; }
            set { base["Email"] = value; }
        }
        [ConfigurationProperty("Senha", IsRequired = false)]
        public string Senha
        {
            get { return (string)base["Senha"]; }
            set { base["Senha"] = value; }
        }

        [ConfigurationProperty("Smtp", IsRequired = false)]
        public string Smtp
        {
            get { return (string)base["Smtp"]; }
            set { base["Senha"] = value; }
        }

    }




}
